package com.cqupt.tomwang.custom;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.LinearLayout;

import com.cqupt.tomwang.custom.coustomView.DrawView;

public class MainActivity extends AppCompatActivity {
    private LinearLayout linearLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        linearLayout = (LinearLayout) findViewById(R.id.root);
        DrawView drawView = new DrawView(this);
        drawView.setMinimumHeight(300);
        drawView.setMinimumWidth(400);
        linearLayout.addView(drawView);

    }
}
